//package org.example.system.mapper;
//
//import com.baomidou.mybatisplus.core.conditions.Wrapper;
//import com.baomidou.mybatisplus.core.metadata.IPage;
//import com.baomidou.mybatisplus.core.toolkit.Constants;
//import org.apache.ibatis.annotations.Delete;
//import org.apache.ibatis.annotations.Param;
//import org.apache.ibatis.annotations.Update;
//import org.example.system.model.entity.Vehicle;
//import com.baomidou.mybatisplus.core.mapper.BaseMapper;
//import org.example.system.model.vo.VehicleVO;
//
///**
//* @author Administrator
//* @description 针对表【biz_vehicle(车辆表)】的数据库操作Mapper
//* @createDate 2024-11-09 19:08:01
//* @Entity org.example.system.model.entity.BizVehicle
//*/
//public interface VehicleMapper extends BaseMapper<Vehicle> {
//    @Delete("delete from biz_vehicle where id = #{id}")
//    int removeId(Integer id);
//
//    @Update("update biz_vehicle set deleted = 0  where id = #{id}")
//    int recoverId(Integer id);
//
//    IPage<VehicleVO> selectVoPage
//            (IPage<VehicleVO> page,@Param(Constants.WRAPPER) Wrapper<VehicleVO> queryWrapper);
//
//}
//
//
//
//


package org.example.system.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.example.system.model.entity.Vehicle;
import org.example.system.model.query.VehicleDetailQuery;
import org.example.system.model.query.VehiclePageQuery;
import org.example.system.model.query.VehicleQuery;
import org.example.system.model.vo.VehicleListVO;
import org.example.system.model.vo.VehicleVO;

import java.util.List;

/**
 * @author Administrator
 * @description 针对表【biz_vehicle(车辆表)】的数据库操作Mapper
 * @createDate 2024-11-09 19:08:01
 * @Entity org.example.system.model.entity.BizVehicle
 */
public interface VehicleMapper extends BaseMapper<Vehicle> {
    @Delete("delete from biz_vehicle where id = #{id}")
    int removeId(Integer id);

    @Update("update biz_vehicle set deleted = 0  where id = #{id}")
    int recoverId(Integer id);

//
//    IPage<VehicleVO> selectVoPage
//            (@Param(Constants.WRAPPER) Wrapper<VehicleVO> queryWrapper);

//    IPage<VehicleVO> selectVoPage
//            (IPage<VehicleVO> pages,@Param(Constants.WRAPPER) Wrapper<VehicleVO> queryWrapper);


    List<VehicleVO> selectVoPage(VehiclePageQuery queryParams);
    long selectVoTotalCount(VehiclePageQuery queryParams);


    VehicleDetailQuery listById(Integer id);



}





